Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

string.prototype.trimend

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string.prototype.trimend

ES2019 spec-compliant String.prototype.trimEnd shim.

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is string.prototype.trimend?

The string.prototype.trimend package provides functionality to remove whitespace from the end of a string without altering the original string. It is a polyfill for the String.prototype.trimEnd method, which is part of the ECMAScript 2019 (ES10) standard. This package ensures compatibility across different JavaScript environments where the native trimEnd method may not be available.

What are string.prototype.trimend's main functionalities?

Trimming whitespace from the end of a string

This feature allows you to remove any trailing whitespace from a string. The code sample demonstrates how to use the trimEnd method to trim whitespace from the end of the string ' Hello World! ', resulting in ' Hello World!'.

" Hello World!   ".trimEnd()

Other packages similar to string.prototype.trimend

Keywords

FAQs

Package last updated on 17 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc